import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('member_setting')
export class MemberSetting {
  @PrimaryGeneratedColumn({ type: 'int', name: 'setting_id', comment: '设置id' })
  settingId: number;

  @Column({ type: 'int', name: 'default_avatar_id', default: 0, comment: '会员默认头像id' })
  defaultAvatarId: number;

  @Column({ type: 'tinyint', name: 'is_register', default: 1, comment: '账号密码注册是否开启，1是0否' })
  isRegister: number;

  @Column({ type: 'tinyint', name: 'is_login', default: 1, comment: '账号密码登录是否开启，1是0否' })
  isLogin: number;

  @Column({ type: 'tinyint', name: 'is_captcha_register', default: 1, comment: '注册验证码是否开启，1是0否' })
  isCaptchaRegister: number;

  @Column({ type: 'tinyint', name: 'is_captcha_login', default: 0, comment: '登录验证码是否开启，1是0否' })
  isCaptchaLogin: number;

  @Column({ type: 'tinyint', name: 'is_phone_register', default: 1, comment: '手机验证码注册是否开启，1是0否' })
  isPhoneRegister: number;

  @Column({ type: 'tinyint', name: 'is_phone_login', default: 1, comment: '手机验证码登录是否开启，1是0否' })
  isPhoneLogin: number;

  @Column({ type: 'tinyint', name: 'is_email_register', default: 1, comment: '邮箱验证码注册是否开启，1是0否' })
  isEmailRegister: number;

  @Column({ type: 'tinyint', name: 'is_email_login', default: 1, comment: '邮箱验证码登录是否开启，1是0否' })
  isEmailLogin: number;

  @Column({ type: 'tinyint', name: 'is_multi_login', default: 0, comment: '多端登录是否开启，1是0否' })
  isMultiLogin: number;

  @Column({ type: 'tinyint', name: 'is_member_api', default: 0, comment: '会员接口是否开启，1是0否' })
  isMemberApi: number;

  @Column({ type: 'tinyint', name: 'captcha_mode', default: 1, comment: '验证码方式，1字符验证码，2行为验证码' })
  captchaMode: number;

  @Column({ type: 'tinyint', name: 'captcha_type', default: 1, comment: '验证码类型；字符验证码：1数字，2字母，3数字字母，4算术，5中文；行为验证码：1滑动blockPuzzle，2文字clickWord' })
  captchaType: number;

  @Column({ type: 'varchar', name: 'token_key', length: 32, default: '', comment: 'Token密钥' })
  tokenKey: string;

  @Column({ type: 'int', name: 'token_exp', default: 720, comment: 'Token有效时间（小时）' })
  tokenExp: number;

  @Column({ type: 'int', name: 'api_rate_num', default: 0, comment: '接口请求速率次数（0不限制）' })
  apiRateNum: number;

  @Column({ type: 'int', name: 'api_rate_time', default: 1, comment: '接口请求速率时间（秒）' })
  apiRateTime: number;

  @Column({ type: 'tinyint', name: 'log_switch', default: 1, comment: '日志记录是否开启，1是0否' })
  logSwitch: number;

  @Column({ type: 'int', name: 'log_save_time', default: 0, comment: '日志保留时间（天），0永久保留' })
  logSaveTime: number;

  @Column({ type: 'tinyint', name: 'miniapp_register', default: 1, comment: '系统小程序注册是否开启，1是0否' })
  miniappRegister: number;

  @Column({ type: 'tinyint', name: 'miniapp_login', default: 1, comment: '系统小程序登录是否开启，1是0否' })
  miniappLogin: number;

  @Column({ type: 'tinyint', name: 'offiacc_register', default: 1, comment: '系统公众号注册是否开启，1是0否' })
  offiaccRegister: number;

  @Column({ type: 'tinyint', name: 'offiacc_login', default: 1, comment: '系统公众号登录是否开启，1是0否' })
  offiaccLogin: number;

  @Column({ type: 'tinyint', name: 'website_register', default: 1, comment: '系统网站应用注册是否开启，1是0否' })
  websiteRegister: number;

  @Column({ type: 'tinyint', name: 'website_login', default: 1, comment: '系统网站应用登录是否开启，1是0否' })
  websiteLogin: number;

  @Column({ type: 'tinyint', name: 'mobile_register', default: 1, comment: '系统移动应用注册是否开启，1是0否' })
  mobileRegister: number;

  @Column({ type: 'tinyint', name: 'mobile_login', default: 1, comment: '系统移动应用登录是否开启，1是0否' })
  mobileLogin: number;

  @Column({ type: 'varchar', name: 'wx_miniapp_appid', length: 127, default: '', comment: '微信小程序AppID' })
  wxMiniappAppid: string;

  @Column({ type: 'varchar', name: 'wx_miniapp_appsecret', length: 127, default: '', comment: '微信小程序AppSecret' })
  wxMiniappAppsecret: string;

  @Column({ type: 'tinyint', name: 'wx_miniapp_register', default: 1, comment: '微信小程序注册是否开启，1是0否' })
  wxMiniappRegister: number;

  @Column({ type: 'tinyint', name: 'wx_miniapp_login', default: 1, comment: '微信小程序登录是否开启，1是0否' })
  wxMiniappLogin: number;

  @Column({ type: 'tinyint', name: 'wx_miniapp_bind', default: 1, comment: '微信小程序绑定是否开启，1是0否' })
  wxMiniappBind: number;

  @Column({ type: 'varchar', name: 'wx_offiacc_appid', length: 127, default: '', comment: '微信公众号AppID' })
  wxOffiaccAppid: string;

  @Column({ type: 'varchar', name: 'wx_offiacc_appsecret', length: 127, default: '', comment: '微信公众号AppSecret' })
  wxOffiaccAppsecret: string;

  @Column({ type: 'tinyint', name: 'wx_offiacc_register', default: 1, comment: '微信公众号注册是否开启，1是0否' })
  wxOffiaccRegister: number;

  @Column({ type: 'tinyint', name: 'wx_offiacc_login', default: 1, comment: '微信公众号登录是否开启，1是0否' })
  wxOffiaccLogin: number;

  @Column({ type: 'tinyint', name: 'wx_offiacc_bind', default: 1, comment: '微信公众号绑定是否开启，1是0否' })
  wxOffiaccBind: number;

  @Column({ type: 'varchar', name: 'wx_website_appid', length: 127, default: '', comment: '微信网站应用AppID' })
  wxWebsiteAppid: string;

  @Column({ type: 'varchar', name: 'wx_website_appsecret', length: 127, default: '', comment: '微信网站应用AppSecret' })
  wxWebsiteAppsecret: string;

  @Column({ type: 'tinyint', name: 'wx_website_register', default: 1, comment: '微信网站应用注册是否开启，1是0否' })
  wxWebsiteRegister: number;

  @Column({ type: 'tinyint', name: 'wx_website_login', default: 1, comment: '微信网站应用登录是否开启，1是0否' })
  wxWebsiteLogin: number;

  @Column({ type: 'tinyint', name: 'wx_website_bind', default: 1, comment: '微信网站应用绑定是否开启，1是0否' })
  wxWebsiteBind: number;

  @Column({ type: 'varchar', name: 'wx_mobile_appid', length: 127, default: '', comment: '微信移动应用AppID' })
  wxMobileAppid: string;

  @Column({ type: 'varchar', name: 'wx_mobile_appsecret', length: 127, default: '', comment: '微信移动应用AppSecret' })
  wxMobileAppsecret: string;

  @Column({ type: 'tinyint', name: 'wx_mobile_register', default: 1, comment: '微信移动应用注册是否开启，1是0否' })
  wxMobileRegister: number;

  @Column({ type: 'tinyint', name: 'wx_mobile_login', default: 1, comment: '微信移动应用登录是否开启，1是0否' })
  wxMobileLogin: number;

  @Column({ type: 'tinyint', name: 'wx_mobile_bind', default: 1, comment: '微信移动应用绑定是否开启，1是0否' })
  wxMobileBind: number;

  @Column({ type: 'varchar', name: 'qq_miniapp_appid', length: 127, default: '', comment: 'QQ小程序AppID' })
  qqMiniappAppid: string;

  @Column({ type: 'varchar', name: 'qq_miniapp_appsecret', length: 127, default: '', comment: 'QQ小程序AppSecret' })
  qqMiniappAppsecret: string;

  @Column({ type: 'tinyint', name: 'qq_miniapp_register', default: 1, comment: 'QQ小程序注册是否开启，1是0否' })
  qqMiniappRegister: number;

  @Column({ type: 'tinyint', name: 'qq_miniapp_login', default: 1, comment: 'QQ小程序登录是否开启，1是0否' })
  qqMiniappLogin: number;

  @Column({ type: 'tinyint', name: 'qq_miniapp_bind', default: 1, comment: 'QQ小程序绑定是否开启，1是0否' })
  qqMiniappBind: number;

  @Column({ type: 'varchar', name: 'qq_website_appid', length: 127, default: '', comment: 'QQ网站应用APP ID' })
  qqWebsiteAppid: string;

  @Column({ type: 'varchar', name: 'qq_website_appsecret', length: 127, default: '', comment: 'QQ网站应用APP Key' })
  qqWebsiteAppsecret: string;

  @Column({ type: 'tinyint', name: 'qq_website_register', default: 1, comment: 'QQ网站应用注册是否开启，1是0否' })
  qqWebsiteRegister: number;

  @Column({ type: 'tinyint', name: 'qq_website_login', default: 1, comment: 'QQ网站应用登录是否开启，1是0否' })
  qqWebsiteLogin: number;

  @Column({ type: 'tinyint', name: 'qq_website_bind', default: 1, comment: 'QQ网站应用绑定是否开启，1是0否' })
  qqWebsiteBind: number;

  @Column({ type: 'varchar', name: 'qq_mobile_appid', length: 127, default: '', comment: 'QQ移动应用APP ID' })
  qqMobileAppid: string;

  @Column({ type: 'varchar', name: 'qq_mobile_appsecret', length: 127, default: '', comment: 'QQ移动应用APP Key' })
  qqMobileAppsecret: string;

  @Column({ type: 'tinyint', name: 'qq_mobile_register', default: 1, comment: 'QQ移动应用注册是否开启，1是0否' })
  qqMobileRegister: number;

  @Column({ type: 'tinyint', name: 'qq_mobile_login', default: 1, comment: 'QQ移动应用登录是否开启，1是0否' })
  qqMobileLogin: number;

  @Column({ type: 'tinyint', name: 'qq_mobile_bind', default: 1, comment: 'QQ移动应用绑定是否开启，1是0否' })
  qqMobileBind: number;

  @Column({ type: 'varchar', name: 'wb_website_appid', length: 127, default: '', comment: '微博网站应用APP Key' })
  wbWebsiteAppid: string;

  @Column({ type: 'varchar', name: 'wb_website_appsecret', length: 127, default: '', comment: '微博网站应用App Secret' })
  wbWebsiteAppsecret: string;

  @Column({ type: 'tinyint', name: 'wb_website_register', default: 1, comment: '微博网站应用注册是否开启，1是0否' })
  wbWebsiteRegister: number;

  @Column({ type: 'tinyint', name: 'wb_website_login', default: 1, comment: '微博网站应用登录是否开启，1是0否' })
  wbWebsiteLogin: number;

  @Column({ type: 'tinyint', name: 'wb_website_bind', default: 1, comment: '微博网站应用绑定是否开启，1是0否' })
  wbWebsiteBind: number;

  @Column({ type: 'int', name: 'create_uid', default: 0, comment: '添加用户id' })
  createUid: number;

  @Column({ type: 'int', name: 'update_uid', default: 0, comment: '修改用户id' })
  updateUid: number;

  @Column({ type: 'datetime', name: 'create_time', nullable: true, comment: '添加时间' })
  createTime: Date;

  @Column({ type: 'datetime', name: 'update_time', nullable: true, comment: '修改时间' })
  updateTime: Date;
}